import { TableColumns } from "@/components/layout/table/table-columns";
import { FORMAT, NUMBER } from "@/utils/enums/type-enums";

/**
 * 床位列表
 */
export const headerColumns: TableColumns[] = [
    {
        type: NUMBER,
        label: '序号'
    },
    {
        label: '用户名',
        name: 'loginName',
        width: 200,
    },
    {
        label: '姓名',
        name: 'displayName',
        width: 200,
    },
    {
        label: '手机',
        name: 'cellphone',
        width: 150,
    },
    {
        type: 'format',
        label: '性别',
        name: 'sex',
        value: [{ label: '男', value: 1 }, { label: '女', value: 2 }]
    },
    {
        type: 'switch',
        label: '是否禁用',
        name: 'enabled',
        active: '启用',
        value: 0,
        inactive: '禁用',
        invalue: 1,
        width: 200,
    },
    {
        label: '添加人',
        name: 'addUserName',
        width: 200,
    },
    {
        label: '添加时间',
        name: 'addTime',
        width: 200,
    },
    {
        label: '操作',
        type: 'custom',
        align: 'center',
        buttons: [
            { method: 'edit', text: '编辑' },
            { method: 'reset', text: '重置密码' },
            { method: 'delete', text: '删除' }
        ]
    },
]